<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "leftForSaBorrow.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="审核满标">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">
                            <div class="toolbor-module">
                                <input type="button" class="input-button return" value="返回" onclick="history.go(-1)">
                            </div>
                        </div>
                        <!--工具栏--}-->

                        <div id="main" class="clearfix">

                            <div class="valBox" style="margin-bottom:20px;">
                                <div class="top">
                                    <strong>已满额借款标审核</strong>
                                </div>
                                <div class="w349 fp clearfix">
                                    <ul>
                                        <li>
                                            <div class="title">标题：</div>
                                            <div class="v">
                                                ${b.name!}
                                            </div>
                                        </li>
                                        <li>
                                            <div class="title">借款人：</div>
                                            <div class="v">
                                                <a href="javascript:void(0)" onclick='alertPop("用户详细信息查看","url:get?index.php?wzd888&q=module/user/view&user_id=2702&type=scene",500,230,"true","","true","text");'>${b.user.showName!}</a>
                                            </div>
                                        </li>
                                        <li>
                                            <div class="title">借款金额：</div>
                                            <div class="v">
                                                ￥${b.account!}
                                            </div>
                                        </li>
                                        <li class="color">
                                            <div class="title">年利率：</div>
                                            <div class="v">
                                                ${b.apr} %
                                            </div>
                                        </li>
                                        <li class="color">
                                            <div class="title">借款期限：</div>
                                            <div class="v">
                                                <#if b.isday==1>${b.timeLimitDay!"-"}天<#else>${b.timeLimit!"-"}个月</#if>
                                            </div>
                                        </li>
                                    </ul>
                                </div>
                            </div>

                            <table class="data-list">
                                <tr class="header">
                                    <td>ID</td>
                                    <td>用户名称</td>
                                    <td>投资金额</td>
                                    <td>有效金额</td>
                                    <td>状态</td>
                                    <td>投标时间</td>
                                </tr>
                                <#list b.borrowTenders as item>
                                    <tr class="s">
                                        <td>${item.id!"-"}</td>
                                        <td><a href="javascript:void(0)" onclick='alertPop("用户详细信息查看","url:get?index.php?wzd888&q=module/user/view&user_id=2703&type=scene",500,230,"true","","true","text");'>${item.user.showName!}</a></td>
                                        <td>${item.money!0}元</td>
                                        <td><font color="#FF0000">${item.account!0}元</font></td>
                                        <td><#if item.money==item.account>全部通过<#else>部分通过 </#if></td>
                                        <td>${item.addtime?string('yyyy-MM-dd HH:mm:ss')!}</td>
                                    </tr>
                                </#list>
                            </table>

                            <!--底部工具栏--{-->
                            <div id="bottomToolbar" class="clearfix">
                                <div class="other-tool">
                                    <dl class="refresh-data">
                                        <dt class="refresh-data-icon"></dt>
                                        <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                    </dl>
                                </div>
                            </div>
                            <!--底部工具栏--}-->

                            <table class="data-list" style="margin-bottom:20px;">
                                <tr class="header">
                                    <td>ID</td>
                                    <td>借款期限</td>
                                    <td>预还金额</td>
                                    <td>本金</td>
                                    <td>利息</td>
                                </tr>

                                <tr class="s">
                                    <td>${b.id}</td>
                                    <td><#if b.isday==1>${b.timeLimitDay}&nbsp;天<#else>${b.timeLimit}&nbsp;月</#if></td>
                                    <td>￥${b.repaymentAccount}</td>
                                    <td>￥${b.account}</td>
                                    <td>￥${b.repaymentAccount-b.account}元</td>
                                </tr>


                            </table>
                            <form name="form1" method="post"  onsubmit="return check_form();" action="verifyFullBorrow.html" >
                                <div id="audit"  style="margin-bottom:20px;">
                                    <div class="top">
                                        <strong>审核此借款</strong>
                                    </div>
                                    <div class="v">
                                        <div class="c">
                                            <div class="choose">
                                                <label class="mr15"><input name="status" type="radio" value="3" class="radio">复审通过</label>
                                                <label><input name="status" type="radio" class="radio" value="4" checked="checked">复审不通过</label>
                                            </div>
                                            <textarea class="remark" name="verify_remark">输入审核备注...</textarea>
                                        </div>
                                        <div class="other clearfix">
                                            <input type="hidden" name="id" value="${b.id?c}" />
                                            <input type="hidden" name="verifyFullBorrowToken" value="${verifyFullBorrowToken!}" />
                                            <input type="submit"  name="reset" value="确定审核" class="input-button confirm"/>
                                        </div>

                                    </div>
                                </div>
                            </form>

                            <script>
                                function check_form(){
                                    var frm = document.forms['form1'];
                                    var verify_remark = frm.elements['verify_remark'].value;
                                    var errorMsg = '';
                                    if (verify_remark.length == 0 || verify_remark=='输入审核备注...') {
                                        errorMsg += '备注必须填写' + '\n';
                                    }

                                    if (errorMsg.length > 0){
                                        alert(errorMsg); return false;
                                    } else{
                                        return true;
                                    }
                                }
                            </script>

                            <div class="valBox" style="margin-bottom:20px;">
                                <div class="top">
                                    <strong>其他详细内容</strong>
                                </div>
                                <div class="w349 fp clearfix">
                                    <ul>
                                        <li>
                                            <div class="title">投标奖励：</div>
                                            <div class="v">
                                                <#if b.award??&&(b.award==1 || b.award==2)>有<#else>无</#if>奖励
                                            </div>
                                        </li>

                                        <li>
                                            <div class="title">添加时间：</div>
                                            <div class="v">
                                                ${b.addtime?string('yyyy-MM-dd HH:mm:ss')}
                                            </div>
                                        </li>

                                        <li class="color">
                                            <div class="title">内容：</div>
                                            <div class="v">
                                                ${b.context!}
                                            </div>
                                        </li>
                                        <li class="color"></li>
                                    </ul>
                                </div>
                            </div>

                        </div>
        </div>
    </div>
    <div class="mc-b"><#include "../foot.html"></div>
    <#include "../jsPage.html">
    </body>
</html>